package com.xuecheng.web.exception;

import com.xuecheng.commons.enums.ErrorCode;
import lombok.Data;

@Data
public class BusinessException extends RuntimeException {

    //错误信息枚举对象
    private ErrorCode code;

    public BusinessException(ErrorCode code) {
        this.code = code;
    }
}
